package com.uflower.search.vo;

import com.uflower.common.to.es.SkuEsModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class SearchResult {
    List<SkuEsModel> products;

    private Integer pageNum;//当前页
    private Long total;//总记录数
    private Integer totalPage;//总页数
    //查询结果所有涉及到的品牌
    private List<BrandVo> brandVos;
    //查询结果涉及到的所有分类
    private List<CatalogVo> catalogVos;
    //查询结果所有涉及到的属性
    private List<AttrVo> attrVos;

    @Data
    public static class BrandVo{
        private Long brandId;
        private  String brandName;
        private String brandImg;
    }

    @Data
    public static class CatalogVo{
        private Long catelogId;
        private String catelogName;
    }

    @Data
    public static class AttrVo{
        private Long attrId;
        private String attrName;
        private List<String> attrValues;//属性值
    }
}
